<template>
  <tr>
    <input type="number" v-model="item.count" />
    <span>{{ item.goodsName }}</span>
    {{
      tip
    }}
  </tr>
</template>

<script>
export default {
  name: 'mwlCmp',
  props: {
    item: {
      type: Object,
      required: true,
    },
  },
  components: {},
  data() {
    return {}
  },
  computed: {
    tip() {
      return this.item.count <= 0 ? '卖光了' : ''
    },
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>

<style lang="less" scoped></style>
